package com.xq.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.api.ApiController;
import com.baomidou.mybatisplus.extension.api.R;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xq.entity.BizProduct;
import com.xq.response.Result02;
import com.xq.service.BizProductService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;

/**
 * (BizProduct)表控制层
 *
 * @author makejava
 * @since 2020-08-11 19:51:16
 */
@RestController
@RequestMapping("bizOutStock/bizProduct")
@CrossOrigin
public class BizProductController extends ApiController {
    /**
     * 服务对象
     */
    @Resource
    private BizProductService bizProductService;

    @ApiOperation("查询订单")
    @GetMapping("findPro/{out_num}")
    public Result02 findPro(@PathVariable("out_num") String out_num) {
        List<BizProduct> byPro = bizProductService.findByPro(out_num);
        return Result02.success().data(byPro);
    }
}